#!/bin/bash
## filename: for-variable_as_list.sh
# 使用变量作为 WordList
i=1; weekdays="Mon Tue Wed Thu Fri"
for day in $weekdays; do
  echo "Weekday $((i++)) : $day"
done

#OSList="Linux ‘Gnu Hurd’ FreeBSD ‘Mac OS X’"
OSList=(Linux "Gnu Hurd" FreeBSD "Mac OS X")
for x in "${OSList[@]}" Others ; do
  echo "$x" 
done
